package com.langcollab.languagementor.controller
{
	import mx.rpc.events.ResultEvent;	
	import org.swizframework.utils.services.ServiceHelper;
	
	public class Controller
	{
		//[Inject]
		//public var userService : UserService;
		
		[Inject]
		public var serviceHelper : ServiceHelper;
		
		//[Bindable]
		//public var currentUser : User;
		
		//[PostConstruct]
		/**
		 * [PostConstruct] methods are invoked after all dependencies are injected.
		 * In this example, we set up a default user after the bean is created.
		 */ 
		//public function createDefaultUser() : void
		//{
		//	currentUser = new User();
		//}
		
		//[EventHandler( event="UserEvent.SAVE_USER_REQUESTED", properties="user" )]
		//public function saveUser( user : User ) : void
		//{
		//	serviceHelper.executeServiceCall( userService.saveUser( user ), handleSaveUserResult );
		//}
		
		//private function handleSaveUserResult( event : ResultEvent ) : void
		//{
		//	// Show an Alert just to make it obvious that the save was successful.
		//	Alert.show( 'User saved successfully!' );
		//}
		
	}
}